package com.community.web.master;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import springfox.documentation.swagger2.annotations.EnableSwagger2;


@SpringBootApplication
@MapperScan("com.community.web.master.mapper")
@ComponentScan(basePackages =  {"com.community.web.master", "com.community.common.utils","com.community.common.properties"})
@EnableTransactionManagement
public class MasterWebApplication implements WebMvcConfigurer {
    public static void main(String[] args) {
        SpringApplication.run(MasterWebApplication.class, args);
    }

}